package com.atguigu.product.products.feign;

import com.atguigu.common.utils.R;
import com.atguigu.product.products.to.SkuFullReductionTo;
import com.atguigu.product.products.to.SpuBoundsTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-coupon")
public interface CouponFeign {


    @PostMapping("coupons/smsskufullreduction/save")
    R save(@RequestBody SkuFullReductionTo skuFullReductionTo);

    @PostMapping("coupons/spubounds/save")
    R save(@RequestBody SpuBoundsTo spuBoundsTo);
}
